<template>
		
		<view class="page">
			<view class="content">
				 <web-view :src='url' style="width: 100%;"></web-view>
			</view>
		</view>
			
</template>

<script>
  var self;
  export default {
    name: 'webview',
    data() {
      return {
        url:''
      }
    },
    onLoad(options){
      self = this
	  if(options.title){
		  uni.setNavigationBarTitle({
		    title: options.title
		  });
	  }
      if(options && options.url) {
        self.url = decodeURIComponent(options.url)
      }
    }
  }
</script>

<style>

</style>
